package cn.iocoder.yudao.module.book.controller.admin.collections.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 绘本集 Response VO")
@Data
@ExcelIgnoreUnannotated
public class CollectionsRespVO {

    @Schema(description = "绘本集id", requiredMode = Schema.RequiredMode.REQUIRED, example = "27291")
    @ExcelProperty("绘本集id")
    private Integer collectionId;

    @Schema(description = "标题", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("标题")
    private String title;

    @Schema(description = "封面")
    @ExcelProperty("封面")
    private String image;

    @Schema(description = "类别id")
    @ExcelProperty("类别id")
    private Integer classifyId;

    @Schema(description = "描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "随便")
    @ExcelProperty("描述")
    private String description;

    @Schema(description = "分类id", requiredMode = Schema.RequiredMode.REQUIRED, example = "27291")
    @ExcelProperty("分类id")
    private Integer categoryId;

    @Schema(description = "是否为英文", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "是否为英文", converter = DictConvert.class)
    @DictFormat("infra_boolean_string") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer isEnglish;

    @Schema(description = "是否置顶")
    @ExcelProperty(value = "是否置顶", converter = DictConvert.class)
    @DictFormat("infra_boolean_string") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer isTop;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}